import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'

console.log('傻逼，居然用不起！！！')
export default defineConfig({
	plugins: [vue()],
	server: {
		proxy: {
			'/precloues': 'http://192.168.2.2:7000/precloues',
			'/juejin':{
				target:'https://api.juejin.cn',
				changeOrigin:true, // 开启代理
				rewrite:path => {
					path.replace(/^\/juejin/,'')
				}
			}
		}
	}
})